<!DOCTYPE html>



  


<html class="theme-next gemini use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/limh/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/limh/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/limh/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/limh/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/limh/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/limh/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/limh/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Flutter,">










<meta name="description" content="Flutter正式版出了,做为一个Android开发，是时候跟随大部队进坑了。在写一个登录页面的时候登录是写完了，突然发现不知道怎么搞一个加载中的动画效果，毕竟Android中有ProgressDialog可用，然而Flutter中不知道用啥，那就自己写一个出来。  项目地址 目标先上效果图： 是不是感觉跟ProgressDialog创建出来的一毛一样！！！ 实现思路使用对话框 首先想到的是用F">
<meta name="keywords" content="Flutter">
<meta property="og:type" content="article">
<meta property="og:title" content="Flutter撸一个加载动画">
<meta property="og:url" content="https://tdnr.gitee.io/limh/2019/01/16/flutter1/index.html">
<meta property="og:site_name" content="土逗牛肉">
<meta property="og:description" content="Flutter正式版出了,做为一个Android开发，是时候跟随大部队进坑了。在写一个登录页面的时候登录是写完了，突然发现不知道怎么搞一个加载中的动画效果，毕竟Android中有ProgressDialog可用，然而Flutter中不知道用啥，那就自己写一个出来。  项目地址 目标先上效果图： 是不是感觉跟ProgressDialog创建出来的一毛一样！！！ 实现思路使用对话框 首先想到的是用F">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="https://upload-images.jianshu.io/upload_images/10147880-33bbd66690cc486e.gif?imageMogr2/auto-orient/strip">
<meta property="og:image" content="https://upload-images.jianshu.io/upload_images/10147880-be9c13109b054c9f.gif?imageMogr2/auto-orient/strip">
<meta property="og:image" content="https://upload-images.jianshu.io/upload_images/10147880-452d7869dc669338.gif?imageMogr2/auto-orient/strip">
<meta property="og:image" content="https://upload-images.jianshu.io/upload_images/10147880-adfd923347ec33f8.gif?imageMogr2/auto-orient/strip">
<meta property="og:image" content="https://upload-images.jianshu.io/upload_images/10147880-34543dd2cce2006d.gif?imageMogr2/auto-orient/strip">
<meta property="og:image" content="https://upload-images.jianshu.io/upload_images/10147880-9a40f6eb03491029.gif?imageMogr2/auto-orient/strip">
<meta property="og:updated_time" content="2019-01-16T02:15:15.998Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Flutter撸一个加载动画">
<meta name="twitter:description" content="Flutter正式版出了,做为一个Android开发，是时候跟随大部队进坑了。在写一个登录页面的时候登录是写完了，突然发现不知道怎么搞一个加载中的动画效果，毕竟Android中有ProgressDialog可用，然而Flutter中不知道用啥，那就自己写一个出来。  项目地址 目标先上效果图： 是不是感觉跟ProgressDialog创建出来的一毛一样！！！ 实现思路使用对话框 首先想到的是用F">
<meta name="twitter:image" content="https://upload-images.jianshu.io/upload_images/10147880-33bbd66690cc486e.gif?imageMogr2/auto-orient/strip">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/limh/',
    scheme: 'Gemini',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://tdnr.gitee.io/limh/2019/01/16/flutter1/">





  <title>Flutter撸一个加载动画 | 土逗牛肉</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans ">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/limh/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">土逗牛肉</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/limh/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/limh/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/limh/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/limh/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/limh/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br>
            
            关于
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://tdnr.gitee.io/limh/limh/2019/01/16/flutter1/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="土逗牛肉">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/limh/images/avatar.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="土逗牛肉">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Flutter撸一个加载动画</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-01-16T20:35:45+08:00">
                2019-01-16
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/limh/categories/Flutter/" itemprop="url" rel="index">
                    <span itemprop="name">Flutter</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <blockquote>
<p>Flutter正式版出了,做为一个Android开发，是时候跟随大部队进坑了。在写一个登录页面的时候登录是写完了，突然发现不知道怎么搞一个加载中的动画效果，毕竟Android中有ProgressDialog可用，然而Flutter中不知道用啥，那就自己写一个出来。</p>
</blockquote>
<p><a href="https://github.com/limhGeek/flutter_loading" target="_blank" rel="noopener">项目地址</a></p>
<h3 id="目标"><a href="#目标" class="headerlink" title="目标"></a>目标</h3><p>先上效果图：<br><img src="https://upload-images.jianshu.io/upload_images/10147880-33bbd66690cc486e.gif?imageMogr2/auto-orient/strip" alt="目标.gif"></p>
<p>是不是感觉跟ProgressDialog创建出来的一毛一样！！！</p>
<h3 id="实现思路"><a href="#实现思路" class="headerlink" title="实现思路"></a>实现思路</h3><h5 id="使用对话框"><a href="#使用对话框" class="headerlink" title="使用对话框"></a><strong>使用对话框</strong></h5><p> 首先想到的是用Flutter自带的SimpleDialog对话框，但是想到这玩意貌似要主动点击按钮关闭，这种方案不符合自己的要求。</p>
<h5 id="根据情况返回不同布局"><a href="#根据情况返回不同布局" class="headerlink" title="根据情况返回不同布局"></a><strong>根据情况返回不同布局</strong></h5><p>在加载的时候返回加载的布局，不加载的时候返回登陆页面布局，代码如下:<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br></pre></td><td class="code"><pre><span class="line">import &apos;package:flutter/material.dart&apos;;</span><br><span class="line">import &apos;package:flutter_loading/Toast.dart&apos;;</span><br><span class="line"></span><br><span class="line">void main() =&gt; runApp(MyApp());</span><br><span class="line"></span><br><span class="line">class MyApp extends StatelessWidget &#123;</span><br><span class="line">  // This widget is the root of your application.</span><br><span class="line">  @override</span><br><span class="line">  Widget build(BuildContext context) &#123;</span><br><span class="line">    return MaterialApp(</span><br><span class="line">      title: &apos;Flutter Demo&apos;,</span><br><span class="line">      theme: ThemeData(</span><br><span class="line">        primarySwatch: Colors.blue,</span><br><span class="line">      ),</span><br><span class="line">      home: MyHomePage(title: &apos;加载动画&apos;),</span><br><span class="line">    );</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">class MyHomePage extends StatefulWidget &#123;</span><br><span class="line">  MyHomePage(&#123;Key key, this.title&#125;) : super(key: key);</span><br><span class="line"></span><br><span class="line">  final String title;</span><br><span class="line"></span><br><span class="line">  @override</span><br><span class="line">  _MyHomePageState createState() =&gt; _MyHomePageState();</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">class _MyHomePageState extends State&lt;MyHomePage&gt; &#123;</span><br><span class="line">  bool _loading = false;</span><br><span class="line"></span><br><span class="line">  @override</span><br><span class="line">  Widget build(BuildContext context) &#123;</span><br><span class="line">    return Scaffold(</span><br><span class="line">      appBar: AppBar(</span><br><span class="line">        title: Text(widget.title),</span><br><span class="line">      ),</span><br><span class="line">      body: _childLayout(),</span><br><span class="line">    );</span><br><span class="line">  &#125;</span><br><span class="line"></span><br><span class="line">  Widget _childLayout() &#123;</span><br><span class="line">    if (_loading) &#123;</span><br><span class="line">      return Center(</span><br><span class="line">        child: Container(</span><br><span class="line">          child: CircularProgressIndicator(),</span><br><span class="line">        ),</span><br><span class="line">      );</span><br><span class="line">    &#125; else &#123;</span><br><span class="line">      return Center(</span><br><span class="line">        child: RaisedButton(</span><br><span class="line">          onPressed: () =&gt; _onRefresh(),</span><br><span class="line">          child: Text(&apos;显示加载动画&apos;),</span><br><span class="line">        ),</span><br><span class="line">      );</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;</span><br><span class="line"></span><br><span class="line">  Future&lt;Null&gt; _onRefresh() async &#123;</span><br><span class="line">    setState(() &#123;</span><br><span class="line">      _loading = !_loading;</span><br><span class="line">    &#125;);</span><br><span class="line">    await Future.delayed(Duration(seconds: 3), () &#123;</span><br><span class="line">      setState(() &#123;</span><br><span class="line">        _loading = !_loading;</span><br><span class="line">        Toast.show(context, &quot;加载完成&quot;);</span><br><span class="line">      &#125;);</span><br><span class="line">    &#125;);</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<p>重点在_childLayout()方法，当加载中的时候返回环形进度条，加载完成，返回实际显示的布局，代码效果如下：</p>
<p><img src="https://upload-images.jianshu.io/upload_images/10147880-be9c13109b054c9f.gif?imageMogr2/auto-orient/strip" alt="GIF0.gif"></p>
<p>看效果是好像实现，但是这种效果只适合普通数据列表页面的加载，要是登陆页面，你总不能这么搞吧，一点登录，页面布局都跑路了，只有一个圈圈有啥意思。这种方法也不行。</p>
<h5 id="使用Stack层叠布局"><a href="#使用Stack层叠布局" class="headerlink" title="使用Stack层叠布局"></a><strong>使用Stack层叠布局</strong></h5><p>在原本布局上面叠加一层半透明背景，显示一个进度条。这个想法好像可以。重点来了开始撸一波<br>层叠布局至少有两个控件，按照Flutter思想，一切皆控件。我们自定义一个控件叫ProgressDialog，我们这个控件接收两个必传参数：子布局child，是否显示加载进度：loading，这两个参数是必须的，所以自定义控件如下<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">import &apos;package:flutter/material.dart&apos;;</span><br><span class="line"></span><br><span class="line">class ProgressDialog extends StatelessWidget &#123;</span><br><span class="line">  final bool loading;</span><br><span class="line">  final Widget child;</span><br><span class="line"></span><br><span class="line">  ProgressDialog(&#123;Key key, @required this.loading, @required this.child&#125;)</span><br><span class="line">      : assert(child != null),</span><br><span class="line">        assert(loading != null),</span><br><span class="line">        super(key: key);</span><br><span class="line"></span><br><span class="line">  @override</span><br><span class="line">  Widget build(BuildContext context) &#123;</span><br><span class="line">    return null;</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<p>构造函数写好了，那么开始写控件，Stack层叠布局必须返回两个以上的控件，所以先定义一个List<widget>,用来放层叠的控件组，首先要把child控件加进去，再加一个加载中的动画。上代码：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><span class="line">import &apos;package:flutter/material.dart&apos;;</span><br><span class="line"></span><br><span class="line">class ProgressDialog extends StatelessWidget &#123;</span><br><span class="line">  final bool loading;</span><br><span class="line">  final Widget child;</span><br><span class="line"></span><br><span class="line">  ProgressDialog(&#123;Key key, @required this.loading, @required this.child&#125;)</span><br><span class="line">      : assert(child != null),</span><br><span class="line">        assert(loading != null),</span><br><span class="line">        super(key: key);</span><br><span class="line"></span><br><span class="line">  @override</span><br><span class="line">  Widget build(BuildContext context) &#123;</span><br><span class="line">    List&lt;Widget&gt; widgetList = [];</span><br><span class="line">    widgetList.add(child);</span><br><span class="line">    //如果正在加载，则显示加载添加加载中布局</span><br><span class="line">    if (loading) &#123;</span><br><span class="line">      widgetList.add(Center(</span><br><span class="line">        child: CircularProgressIndicator(),</span><br><span class="line">      ));</span><br><span class="line">    &#125;</span><br><span class="line">    return Stack(</span><br><span class="line">      children: widgetList,</span><br><span class="line">    );</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></widget></p>
<p>是不是感觉好像很简单的样子，惯例上图：</p>
<p><img src="https://upload-images.jianshu.io/upload_images/10147880-452d7869dc669338.gif?imageMogr2/auto-orient/strip" alt="加载中1"></p>
<p>看图效果好像很接近了，起码原先的布局没有被直接替换，但是感觉不美观，好吧加个透明背景效果，这里就用到控件Opacity，专门用来绘制透明效果。 上代码：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br></pre></td><td class="code"><pre><span class="line">import &apos;package:flutter/material.dart&apos;;</span><br><span class="line"></span><br><span class="line">class ProgressDialog extends StatelessWidget &#123;</span><br><span class="line">  final bool loading;</span><br><span class="line">  final Widget child;</span><br><span class="line"></span><br><span class="line">  ProgressDialog(&#123;Key key, @required this.loading, @required this.child&#125;)</span><br><span class="line">      : assert(child != null),</span><br><span class="line">        assert(loading != null),</span><br><span class="line">        super(key: key);</span><br><span class="line"></span><br><span class="line">  @override</span><br><span class="line">  Widget build(BuildContext context) &#123;</span><br><span class="line">    List&lt;Widget&gt; widgetList = [];</span><br><span class="line">    widgetList.add(child);</span><br><span class="line">    //如果正在加载，则显示加载添加加载中布局</span><br><span class="line">    if (loading) &#123;</span><br><span class="line">      //增加一层黑色背景透明度为0.8</span><br><span class="line">      widgetList.add(</span><br><span class="line">        Opacity(</span><br><span class="line">            opacity: 0.8,</span><br><span class="line">            child: ModalBarrier(</span><br><span class="line">              color: Colors.black87,</span><br><span class="line">            )),</span><br><span class="line">      );</span><br><span class="line">      //环形进度条</span><br><span class="line">      widgetList.add(Center(</span><br><span class="line">        child: CircularProgressIndicator(),</span><br><span class="line">      ));</span><br><span class="line">    &#125;</span><br><span class="line">    return Stack(</span><br><span class="line">      children: widgetList,</span><br><span class="line">    );</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<p>老规矩，上图：<br><img src="https://upload-images.jianshu.io/upload_images/10147880-adfd923347ec33f8.gif?imageMogr2/auto-orient/strip" alt="增加透明度.gif"></p>
<p>看着样子是不是差不多，一般进度都可以用了吧，但是如果我要想在进度条下方显示文字怎么办？并且我看那个toast样子蛮好看的，还想要搞成那样的。好吧，那样的话加载进度条和提示内容得是同一层，用个垂直布局显示一个进度一个Text()应该能搞定：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br></pre></td><td class="code"><pre><span class="line">import &apos;package:flutter/material.dart&apos;;</span><br><span class="line"></span><br><span class="line">class ProgressDialog extends StatelessWidget &#123;</span><br><span class="line">  final bool loading;</span><br><span class="line">  final Widget child;</span><br><span class="line"></span><br><span class="line">  ProgressDialog(&#123;Key key, @required this.loading, @required this.child&#125;)</span><br><span class="line">      : assert(child != null),</span><br><span class="line">        assert(loading != null),</span><br><span class="line">        super(key: key);</span><br><span class="line"></span><br><span class="line">  @override</span><br><span class="line">  Widget build(BuildContext context) &#123;</span><br><span class="line">    List&lt;Widget&gt; widgetList = [];</span><br><span class="line">    widgetList.add(child);</span><br><span class="line">    //如果正在加载，则显示加载添加加载中布局</span><br><span class="line">    if (loading) &#123;</span><br><span class="line">      //增加一层黑色背景透明度为0.8</span><br><span class="line">      widgetList.add(</span><br><span class="line">        Opacity(</span><br><span class="line">            opacity: 0.8,</span><br><span class="line">            child: ModalBarrier(</span><br><span class="line">              color: Colors.black87,</span><br><span class="line">            )),</span><br><span class="line">      );</span><br><span class="line">      //环形进度条</span><br><span class="line">      widgetList.add(Center(</span><br><span class="line">        child: Container(</span><br><span class="line">          padding: const EdgeInsets.all(20.0),</span><br><span class="line">          decoration: BoxDecoration(</span><br><span class="line">              //黑色背景</span><br><span class="line">              color: Colors.black87,</span><br><span class="line">              //圆角边框</span><br><span class="line">              borderRadius: BorderRadius.circular(10.0)),</span><br><span class="line">          child: Column(</span><br><span class="line">            //控件里面内容主轴负轴剧中显示</span><br><span class="line">            mainAxisAlignment: MainAxisAlignment.center,</span><br><span class="line">            crossAxisAlignment: CrossAxisAlignment.center,</span><br><span class="line">            //主轴高度最小</span><br><span class="line">            mainAxisSize: MainAxisSize.min,</span><br><span class="line">            children: &lt;Widget&gt;[</span><br><span class="line">              CircularProgressIndicator(),</span><br><span class="line">              Text(</span><br><span class="line">                &apos;加载中...&apos;,</span><br><span class="line">                style: TextStyle(color: Colors.white),</span><br><span class="line">              )</span><br><span class="line">            ],</span><br><span class="line">          ),</span><br><span class="line">        ),</span><br><span class="line">      ));</span><br><span class="line">    &#125;</span><br><span class="line">    return Stack(</span><br><span class="line">      children: widgetList,</span><br><span class="line">    );</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<p>用一个垂直布局Column包裹进度条和提示内容，完美解决，已经接近目标了，图来–&gt;</p>
<p><img src="https://upload-images.jianshu.io/upload_images/10147880-34543dd2cce2006d.gif?imageMogr2/auto-orient/strip" alt="增加提醒内容.gif"></p>
<p>目标完成，最后润色：提示字体要让用户自定义，加载动画也得可以自定义，那么最终代码如下：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br></pre></td><td class="code"><pre><span class="line">import &apos;package:flutter/material.dart&apos;;</span><br><span class="line"></span><br><span class="line">class ProgressDialog extends StatelessWidget &#123;</span><br><span class="line">  //子布局</span><br><span class="line">  final Widget child;</span><br><span class="line"></span><br><span class="line">  //加载中是否显示</span><br><span class="line">  final bool loading;</span><br><span class="line"></span><br><span class="line">  //进度提醒内容</span><br><span class="line">  final String msg;</span><br><span class="line"></span><br><span class="line">  //加载中动画</span><br><span class="line">  final Widget progress;</span><br><span class="line"></span><br><span class="line">  //背景透明度</span><br><span class="line">  final double alpha;</span><br><span class="line"></span><br><span class="line">  //字体颜色</span><br><span class="line">  final Color textColor;</span><br><span class="line"></span><br><span class="line">  ProgressDialog(</span><br><span class="line">      &#123;Key key,</span><br><span class="line">      @required this.loading,</span><br><span class="line">      this.msg,</span><br><span class="line">      this.progress = const CircularProgressIndicator(),</span><br><span class="line">      this.alpha = 0.6,</span><br><span class="line">      this.textColor = Colors.white,</span><br><span class="line">      @required this.child&#125;)</span><br><span class="line">      : assert(child != null),</span><br><span class="line">        assert(loading != null),</span><br><span class="line">        super(key: key);</span><br><span class="line"></span><br><span class="line">  @override</span><br><span class="line">  Widget build(BuildContext context) &#123;</span><br><span class="line">    List&lt;Widget&gt; widgetList = [];</span><br><span class="line">    widgetList.add(child);</span><br><span class="line">    if (loading) &#123;</span><br><span class="line">      Widget layoutProgress;</span><br><span class="line">      if (msg == null) &#123;</span><br><span class="line">        layoutProgress = Center(</span><br><span class="line">          child: progress,</span><br><span class="line">        );</span><br><span class="line">      &#125; else &#123;</span><br><span class="line">        layoutProgress = Center(</span><br><span class="line">          child: Container(</span><br><span class="line">            padding: const EdgeInsets.all(20.0),</span><br><span class="line">            decoration: BoxDecoration(</span><br><span class="line">                color: Colors.black87,</span><br><span class="line">                borderRadius: BorderRadius.circular(4.0)),</span><br><span class="line">            child: Column(</span><br><span class="line">              mainAxisAlignment: MainAxisAlignment.center,</span><br><span class="line">              crossAxisAlignment: CrossAxisAlignment.center,</span><br><span class="line">              mainAxisSize: MainAxisSize.min,</span><br><span class="line">              children: &lt;Widget&gt;[</span><br><span class="line">                progress,</span><br><span class="line">                Container(</span><br><span class="line">                  padding: const EdgeInsets.fromLTRB(10.0, 10.0, 10.0, 0),</span><br><span class="line">                  child: Text(</span><br><span class="line">                    msg,</span><br><span class="line">                    style: TextStyle(color: textColor, fontSize: 16.0),</span><br><span class="line">                  ),</span><br><span class="line">                )</span><br><span class="line">              ],</span><br><span class="line">            ),</span><br><span class="line">          ),</span><br><span class="line">        );</span><br><span class="line">      &#125;</span><br><span class="line">      widgetList.add(Opacity(</span><br><span class="line">        opacity: alpha,</span><br><span class="line">        child: new ModalBarrier(color: Colors.black87),</span><br><span class="line">      ));</span><br><span class="line">      widgetList.add(layoutProgress);</span><br><span class="line">    &#125;</span><br><span class="line">    return Stack(</span><br><span class="line">      children: widgetList,</span><br><span class="line">    );</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<p>最后附上在工程中调用的例子代码：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br></pre></td><td class="code"><pre><span class="line">import &apos;package:flutter/material.dart&apos;;</span><br><span class="line">import &apos;package:flutter_loading/Toast.dart&apos;;</span><br><span class="line">import &apos;package:flutter_loading/view_loading.dart&apos;;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">void main() =&gt; runApp(MyApp());</span><br><span class="line"></span><br><span class="line">class MyApp extends StatelessWidget &#123;</span><br><span class="line">  // This widget is the root of your application.</span><br><span class="line">  @override</span><br><span class="line">  Widget build(BuildContext context) &#123;</span><br><span class="line">    return MaterialApp(</span><br><span class="line">      title: &apos;Flutter Demo&apos;,</span><br><span class="line">      theme: ThemeData(</span><br><span class="line">        primarySwatch: Colors.blue,</span><br><span class="line">      ),</span><br><span class="line">      home: MyHomePage(title: &apos;加载动画&apos;),</span><br><span class="line">    );</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">class MyHomePage extends StatefulWidget &#123;</span><br><span class="line">  MyHomePage(&#123;Key key, this.title&#125;) : super(key: key);</span><br><span class="line"></span><br><span class="line">  final String title;</span><br><span class="line"></span><br><span class="line">  @override</span><br><span class="line">  _MyHomePageState createState() =&gt; _MyHomePageState();</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">class _MyHomePageState extends State&lt;MyHomePage&gt; &#123;</span><br><span class="line">  bool _loading = false;</span><br><span class="line"></span><br><span class="line">  @override</span><br><span class="line">  Widget build(BuildContext context) &#123;</span><br><span class="line">    return Scaffold(</span><br><span class="line">      appBar: AppBar(</span><br><span class="line">        title: Text(widget.title),</span><br><span class="line">      ),</span><br><span class="line">      body: ProgressDialog(</span><br><span class="line">        loading: _loading,</span><br><span class="line">        msg: &apos;正在加载...&apos;,</span><br><span class="line">        child: Center(</span><br><span class="line">          child: RaisedButton(</span><br><span class="line">            onPressed: () =&gt; _onRefresh(),</span><br><span class="line">            child: Text(&apos;显示加载动画&apos;),</span><br><span class="line">          ),</span><br><span class="line">        ),</span><br><span class="line">      ),</span><br><span class="line">    );</span><br><span class="line">  &#125;</span><br><span class="line"></span><br><span class="line">  Future&lt;Null&gt; _onRefresh() async &#123;</span><br><span class="line">    setState(() &#123;</span><br><span class="line">      _loading = !_loading;</span><br><span class="line">    &#125;);</span><br><span class="line">    await Future.delayed(Duration(seconds: 3), () &#123;</span><br><span class="line">      setState(() &#123;</span><br><span class="line">        _loading = !_loading;</span><br><span class="line">        Toast.show(context, &quot;加载完成&quot;);</span><br><span class="line">      &#125;);</span><br><span class="line">    &#125;);</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<p>对于加载动画，只要把progress属性改为自定义的属性即可，比如这位大佬写的加载动画：<br><a href="https://www.jianshu.com/p/acd3734310aa" target="_blank" rel="noopener">flutter自定义进度动画</a>，我们用他的加载中动画：<br>只需在上述代码中加一行(当然前提是你得去<a href="https://github.com/While1true/flutter_refresh" target="_blank" rel="noopener">github</a>上git到他自定义的代码)：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">loading: _loading,</span><br><span class="line">//自定义动画</span><br><span class="line">progress: MyProgress(size: new Size(100.0, 20.0),color: Colors.white,),</span><br><span class="line">msg: &apos;正在加载...&apos;,</span><br></pre></td></tr></table></figure></p>
<p>效果如下：</p>
<p><img src="https://upload-images.jianshu.io/upload_images/10147880-9a40f6eb03491029.gif?imageMogr2/auto-orient/strip" alt="自定义动画.gif"></p>
<ul>
<li>参考项目：<br><a href="https://github.com/While1true/flutter_refresh" target="_blank" rel="noopener">https://github.com/While1true/flutter_refresh</a><br><a href="https://pub.dartlang.org/packages/modal_progress_hud" target="_blank" rel="noopener">https://pub.dartlang.org/packages/modal_progress_hud</a></li>
</ul>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/limh/tags/Flutter/" rel="tag"># Flutter</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/limh/2019/01/15/flutter2/" rel="next" title="Flutter Window环境搭建">
                <i class="fa fa-chevron-left"></i> Flutter Window环境搭建
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/limh/2019/01/17/flutter3/" rel="prev" title="Flutter路由导航">
                Flutter路由导航 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div id="SOHUCS"></div>
    </div>

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="/limh/images/avatar.jpg" alt="土逗牛肉">
            
              <p class="site-author-name" itemprop="name">土逗牛肉</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/limh/archives/">
              
                  <span class="site-state-item-count">255</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/limh/categories/index.html">
                  <span class="site-state-item-count">8</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/limh/tags/index.html">
                  <span class="site-state-item-count">7</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/limhGeek" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="mailto:1591054297@qq.com" target="_blank" title="E-Mail">
                      
                        <i class="fa fa-fw fa-envelope"></i>E-Mail</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://www.jianshu.com/u/f73b243e7cc9" target="_blank" title="简书">
                      
                        <i class="fa fa-fw fa-user-circle-o"></i>简书</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#目标"><span class="nav-number">1.</span> <span class="nav-text">目标</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#实现思路"><span class="nav-number">2.</span> <span class="nav-text">实现思路</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#使用对话框"><span class="nav-number">2.0.1.</span> <span class="nav-text">使用对话框</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#根据情况返回不同布局"><span class="nav-number">2.0.2.</span> <span class="nav-text">根据情况返回不同布局</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#使用Stack层叠布局"><span class="nav-number">2.0.3.</span> <span class="nav-text">使用Stack层叠布局</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2019</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">土逗牛肉</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Gemini</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
	var str = GetUrlParam('height');
    if (str === '0'){
		document.getElementById('header').style.display = 'none';
		document.getElementById('comments').style.display = 'none';
		document.getElementById('footer').style.display = 'none';
		document.getElementsByClassName('post-footer').item(0).style.display = 'none'
	}
	
    function GetUrlParam(paraName) {
        var url = document.location.toString();
        var arrObj = url.split("?");

        if (arrObj.length > 1) {
            var arrPara = arrObj[1].split("&");
            var arr;

            for (var i = 0; i < arrPara.length; i++) {
                 arr = arrPara[i].split("=");

                if (arr != null && arr[0] === paraName) {
                    return arr[1];
                }
            }
            return "";
        } else {
            return "";
        }
    }
</script>









  












  
  
    <script type="text/javascript" src="/limh/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/limh/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/limh/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/limh/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/limh/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/limh/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/limh/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/limh/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
